package com.bbjob.config;

import javax.annotation.Resource;

import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

import com.bbjob.service.impl.ServerSocketLine;

@Component
@Order(1)
public class MyCommandLineRunner implements CommandLineRunner {

	@Resource
	private ServerSocketLine serverSocketLine;
	
	@Override
	public void run(String... arg0) throws Exception {
		// TODO Auto-generated method stub
		serverSocketLine.startServer();
	}

}
